package com.ls.thread.tj;

public class Thread2 implements Runnable{
	
	private boolean b = true;
	private Threads threads;
	
	Thread2(Threads threads){
		this.threads=threads;
	}
	@Override
	public void run() {
		while(b){
			
			try {
				b=threads.zimu();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
